package com.jielin.handling.service.policeplatform.impl;


import com.jielin.handling.db.InquestionsMapper;
import com.jielin.handling.service.policeplatform.InquestionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by T470 on 2018/7/26.
 */
@Service
public class InquestionsServiceImpl implements InquestionsService {

    @Autowired
    private InquestionsMapper inquestionsMapper;


    /**
     * 根据单位编号查询此单位的案件
     * @param unitCode      办理此案件单位的单位编号
     * @param registTime    案件登记时间
     * @return
     */
    @Override
    public List<Map> getCaseByUnitCode(Map<String, Object> map)  {

            return inquestionsMapper.getCaseByUnitCode(map);

    }

    /**
     * 根据按键编码获取案件相关人员
     * @param caseNum   案件编号
     * @return
     */
    @Override
    public List<Map> getSuspect(Map<String,String> map) {

            return inquestionsMapper.getSuspect(map);
    }


}
